import http from '@/utils/http'
export const reqaddcart =({url,count,price,ischeck,goodid})=>{
 return http.post('/api/addcart',{url,count,price,ischeck,goodid})
}
export const updatacart=({goodid,ischeck,isallcheck,count=""})=>{
  return http.post('/api/updatacart',{goodid,ischeck,isallcheck,count})
}
export const removecart=(goodid)=>{
  return http.delete(`/api/deletecart?id=${goodid}`)
}
export const reqcartlist=()=>{
  return http.get('/api/cartlist')
}
export const reqselectcart=()=>{
  return http.get('/api/selectcart')
}
